package com.ruoyi.points.mapper;

import com.ruoyi.points.domain.QizhongKecheng;
import com.ruoyi.points.domain.QizhongPingjia;
import com.ruoyi.points.domain.QizhongStudent;
import com.ruoyi.points.domain.QizhongYuyue;

import java.util.List;

/**
 * 期中课程Mapper接口
 *
 * @author ruoyi
 * @date 2024-08-06
 */
public interface QizhongKechengMapper
{
    /**
     * 查询期中课程
     *
     * @param id 期中课程主键
     * @return 期中课程
     */
    public QizhongKecheng selectQizhongKechengById(Long id);

    /**
     * 查询期中课程列表
     *
     * @param qizhongKecheng 期中课程
     * @return 期中课程集合
     */
    public List<QizhongKecheng> selectQizhongKechengList(QizhongKecheng qizhongKecheng);

    /**
     * 新增期中课程
     *
     * @param qizhongKecheng 期中课程
     * @return 结果
     */
    public int insertQizhongKecheng(QizhongKecheng qizhongKecheng);

    /**
     * 修改期中课程
     *
     * @param qizhongKecheng 期中课程
     * @return 结果
     */
    public int updateQizhongKecheng(QizhongKecheng qizhongKecheng);

    /**
     * 删除期中课程
     *
     * @param id 期中课程主键
     * @return 结果
     */
    public int deleteQizhongKechengById(Long id);

    /**
     * 批量删除期中课程
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQizhongKechengByIds(Long[] ids);

    int selectyunum(Long id);

    int selectpingnum(Long id);

    List<QizhongStudent> student();

    void yy(QizhongYuyue qizhongYuyue);

    QizhongStudent getStudent(Long sId);

    void updateStudent(QizhongStudent qizhongStudent);

    void jia(QizhongPingjia qizhongPingjia);

    List<QizhongYuyue> selectqizhongYuyue(Long sId);
}
